﻿using ExpertSystem.Interfaces;

namespace ExpertSystem.Domains
{
    class Ship : IShip 
    {

        private readonly string _name;
        private readonly string _profile;
        private readonly int _maxavto;
        private readonly int _vodoizm;
        private readonly int _maxchisl;

        public Ship(string name, string profile, int maxavto, int vodoizm, int maxchisl)
        {
            _name = name;
            _maxchisl = maxchisl;
            _vodoizm = vodoizm;
            _maxavto = maxavto;
            _profile = profile;
        }

        #region Implementation of IShip

        /// <summary>
        /// Имя коробля
        /// </summary>
        public string Name
        {
            get { return _name; }
        }

        /// <summary>
        /// Профиль судна
        /// </summary>
        public string Profile
        {
            get { return _profile; }
        }

        /// <summary>
        /// Водоизмещение
        /// </summary>
        public int Vodoizmeshenie
        {
            get { return _vodoizm; }
        }

        /// <summary>
        /// Максимальное автономность
        /// </summary>
        public int MaxAvto
        {
            get { return _maxavto; }
        }

        /// <summary>
        /// Максимальная численность экипажа
        /// </summary>
        public int MaxChisl
        {
            get { return _maxchisl; }
        }

        #endregion
    }
}
